package dao;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "prelevance", catalog = "assistedlearning")
public class Prelevance implements java.io.Serializable{

    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    private int id;
    private int prelevanceid;
    private int knowledgeid;
    private int type;
    
    public Prelevance(){
	
    }

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Column(name = "prelevanceid", nullable = false)
    public int getPrelevanceid() {
        return prelevanceid;
    }

    public void setPrelevanceid(int prelevanceid) {
        this.prelevanceid = prelevanceid;
    }

    @Column(name = "knowledgeid", nullable = false)
    public int getKnowledgeid() {
        return knowledgeid;
    }

    public void setKnowledgeid(int knowledgeid) {
        this.knowledgeid = knowledgeid;
    }

    @Column(name = "type", nullable = false)
    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
            
}
